from selenium.webdriver.common.by import By

from Base.Base import Base
# 查询的定位
class Page2(Base):
    danjigame_loc=(By.XPATH,'//*[@id="app"]/div/section/aside/ul/li/ul/li[5]/a')
    def danjigame(self):
        self.click(self.danjigame_loc)

    caxunname_loc=(By.XPATH,'/html/body/div[1]/div/section/section/main/form/div/form/div[1]/div/div/div/input')
    def caxunname(self,caxunname):
        self.send_keys(self.caxunname_loc,caxunname)

    djcaxun_loc=(By.XPATH,'/html/body/div[1]/div/section/section/main/form/div/div/div/div/button[1]/span')
    def djcaxun(self):
        self.click(self.djcaxun_loc)


